<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>无标题文档</title>
	<link href="/static/css/default.css" rel="stylesheet" type="text/css">
	<link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id=link'>

</head>

<body style="overflow:hidden; padding:10px;">
	<form>
		<table class="formtable" style="width:580px;">

			<tbody>

				<tr>

					<td class="tlabel">机构名称</td>
					<td>
							{$info.name}
					</td>

				</tr>
			
				<tr>
					<td class="tlabel">续期时间</td>
					<td>
							<select type="text" id="month" class="select">
									<option value="1">1个月</option>
									<option value="2">2个月</option>
									<option value="3">3个月</option>
									<option value="4">4个月</option>
									<option value="5">5个月</option>
									<option value="6">6个月</option>
									<option value="7">7个月</option>
									<option value="8">8个月</option>
									<option value="9">9个月</option>
									<option value="10">10个月</option>
									<option value="11">11个月</option>
									<option value="12">12个月</option>
									
								</select>
					</td>
				</tr>
				<tr>
						<td class="tlabel">费用</td>
						<td>
								<input type="text" id="money" autocomplete="off" style="width:100px;" class="forminput inputstyle1" > 元
						</td>
					</tr>
				







			</tbody>

		</table>

		<div class="formbtn">
			<input type="button" value="保存" class="btnsave">
			<input type="button" value="取消" class="btncancel">
		</div>
		<input type="hidden" id="id" value="{$info.id}" />
	</form>


</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/vue2.js"></script>
<script src="/static/js/layer/layer.js"></script>
<link rel="stylesheet" href="/static/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/static/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/static/js/city.data-3.js"></script>
<script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>

<script>


	
	$(function () {
		$(".btnsave").click(function () {

			var id = $("#id").val();
			var money =$("#money").val();
			var month = $("#month").val();
		


			$.post("/super/Mechanism/xuqi", {
				"id": id, "month": month,money:money
			}, function (data) {
				if (data.status == 200) {
					parent.layer.msg(data.message);

					
					var index = parent.layer.getFrameIndex(window.name);
					window.parent.iframe.contentWindow.location.reload(true);
					console.log(window.parent.iframe);
					parent.layer.close(index);
				} else {
					layer.msg(data.message);
				}
			});
		});
		$(".btncancel").click(function () {
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		});
	});


</script>

</html>